package com.example.academic_affairs_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.academic_affairs_system.mapper.provider.AasClassStudentProvider;
import com.example.academic_affairs_system.model.dto.classStudent.ClassStudentPageDTO;
import com.example.academic_affairs_system.model.entity.AasClassStudent;
import com.example.academic_affairs_system.model.vo.classStudent.ClassStudentVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author hjx
 * @since 2023-01-31
 */
public interface AasClassStudentMapper extends BaseMapper<AasClassStudent> {
  @SelectProvider(value = AasClassStudentProvider.class, method = "getClassStudentVOByClassId")
  List<ClassStudentVO> getClassStudentVOByClassId(
      IPage<ClassStudentVO> page, @Param("dto") ClassStudentPageDTO dto);
}
